package com.hp.gxw.constant;

/**
 * 系统枚举类
 */
public enum QueryTypeConstant {

	文本框("文本框", "文本框"),

	枚举下拉框("枚举下拉框", "枚举下拉框"),

	联表下拉框("联表下拉框", "联表下拉框");

	public String code;

	public String message;

	QueryTypeConstant(String code, String message){
		
		this.code = code;
		this.message = message;
	}
	
	public static String getMessage(String code) {
		for (QueryTypeConstant c : QueryTypeConstant.values()) {
			if (c.getCode().equals(code)) {
				return c.message;
			}
		}
		return null;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
